package com.mall.shopping;

import com.mall.shopping.dto.*;

import java.util.List;

/**
 * @Author: lin
 * @Date: 2020/7/10 21:09
 */
public interface ShoppingCartService {
    Boolean addGoodToCart(AddShoppingCartRequest request);

    List<GetShoppingCartResponse> getCartList(Integer uid);

    void updateCart(UpdateCartNumRequest updateCartNumRequest);

    void deleteCart(DeleteCartItemRequest deleteCartItemRequest);

    void itemsCart(ItemsCIartRequst itemsCartRequst);

    void deleteItemsCart(DeleteCheckedItemRequest deleteCheckedItemRequest);

    void deleteSomeCart(Long userId, List<Long> itemId);

}
